#ifndef __UTILS_H
#define __UTILS_H

#define CLAMP(x, low, high)  (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))

#define MIN(x1,x2)	((x1)<(x2)?(x1):(x2))
#define MAX(x1,x2)	((x1)>(x2)?(x1):(x2))

#endif
